<script>
function openNew() {
  var download = "http://"+window.location.host+"/download-test1.lib";
  var w = window.open(download);
}
</script>
<body>
	<button onclick="openNew()">click me</button>
</body>